$(document).ready(function(){
	$("#uploadForm").submit(
		function (){
			$(".uploadsubmit").val("uploading...");
			$(".uploadsubmit").attr("disabled", "disabled");
		}
	 )
	
	getPrivacy($(".album").val());
	$(".album").change( function() { getPrivacy( $(this).val()); } );
});


function getPrivacy(value){
	var val = value.split(",");
	var v = val[3]*1;
	$(".privacy")[0][v].selected = true;
}
